<?php
/**
 * User_Form_Role
 * 
 * Форма редактирования ролей
 * 
 * @author
 */



class User_Form_Role extends Zen_Form {
	
	public function init() {
		
		parent::init ();
		$this->setMethod ( 'POST' );
		
		$label = new Zend_Form_Element_Text ('label', array ('class' => 'zend_text' ) );
		$label->setLabel ( "Название роли: " )->setRequired ( true )->setFilters ( array ('StringTrim', 'StripTags' ) );
		
		$alias = new Zend_Form_Element_Text ('alias', array ('class' => 'zend_text' ) );
		$alias->setLabel("Псевдоним роли: " )->setRequired ( true )->setFilters ( array ('StringTrim', 'StripTags' ) );
		
		$description = new Zend_Form_Element_Textarea ('description', 
		array ('required' => false, 
        	'label' => 'Описание:', 
         	'class' => 'zend_text_area',
			'rows'=>3
        ));
		
		$sumbit=new Zend_Form_Element_Submit('submit',array('label'=>'Сохранить','class'=>'btn'));
		
		$this->addElements ( array ($label,$alias,$description,$sumbit ) );
	}
}